###
 # @Author       : Yulong(Joseph) Fang <aionv@qq.com>
 # @Date         : 2024-03-24 22:43:37
 # @LastEditors  : Yulong(Joseph) Fang <aionv@qq.com>
 # @LastEditTime : 2024-03-24 22:43:38
 # @Description  : Mac下常用安装脚本
### 


# 通过NVM安装Node.js

# installs NVM (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# download and install Node.js
nvm install 20

# verifies the right Node.js version is in the environment
node -v # should print `v20.11.1`

# verifies the right NPM version is in the environment
npm -v # should print `10.2.4`